<%#
Local variables:
* grid - instance of Datagrid
* assets - Array of database Entities
* options - passed options Hash
%>
<%
  options[:html][:class] += " table"
%>
<%= content_tag :table, options[:html] do %>
  <thead>
    <%= datagrid_header(grid, options) %>
  </thead>
  <tbody>
    <% if assets.empty? %>
      <tr><td class='datagrid-empty' colspan="99"><%= t('datagrid.empty') %><td></tr> 
    <% else %>
    <%= datagrid_rows(grid, assets, options) %>
    <% end %>
  </tbody>
  <% if assets && assets.respond_to?('current_page') %>
  <tfoot>
    <tr>
      <td colspan=100>
        <%= paginate(assets) %>
      <td>
    </tr>
  </tfoot>
  <% end %>
<% end %>
